<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>弹性容器</title>
    <style>
    
        header{
            width: 100%;
            height: 600px;
            display: flex;
            flex-direction: row;
            background-color: #333;
        }

        .item1{
            flex-grow: 2;
            background-color: bisque;
        }

        .item2{
            flex-grow: 1;
            background-color: firebrick;
        }

        .item3{
            flex-grow: 2;
            background-color:beige;
            background: image("../../00122.png");
        }

    </style>
</head>
<body>
    <h2 style="text-align: center;"> 弹性盒子模型</h2>
    <header>
        <div class="item1">

        </div>
        <div class="item2"></div>
        <div class="item3"></div>
    </header>

    <article>
        <p>设置display 属性定义为弹性盒子
            <p>设置flex-direction  row column  还有对应的-reverse 翻转</p>

        </p>
        <p>flex-grow 设置子控制权重</p>

    </article>
</body>
</html>